package com.carl.mall.product.feign;


import com.carl.common.dto.SkuReductionDTO;
import com.carl.common.dto.SpuBoundsDTO;
import com.carl.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-coupon")
public interface CouponFeignService {

    /**
     * 调用远程服务 保存满减,折扣和会员价的相关信息
     * @param skuReductionDTO
     * @return
     */
    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveFullReductionInfo(@RequestBody SkuReductionDTO skuReductionDTO);

    /**
     * 调用远程服务 保存会员积分
     * @param spuBoundsDTO
     * @return
     */
    @PostMapping("/coupon/spubounds/saveBoundInfo")
    R saveBoundInfo(@RequestBody SpuBoundsDTO spuBoundsDTO);

}
